package com.bjsxt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bjsxt.domain.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysMenuMapper extends BaseMapper<SysMenu> {
    /**
     * 根据用户 id 查询对应的菜单数据
     *
     * @param userId 用户 id
     * @return 用户菜单
     */
    List<SysMenu> selectMenusByUserId(@Param("userId") Long userId);
}